﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000AF RID: 175
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AntiAddictScNotify : IMessage<AntiAddictScNotify>, IMessage, IEquatable<AntiAddictScNotify>, IDeepCloneable<AntiAddictScNotify>, IBufferMessage
	{
		// Token: 0x17000237 RID: 567
		// (get) Token: 0x060007D2 RID: 2002 RVA: 0x00016960 File Offset: 0x00014B60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AntiAddictScNotify> Parser
		{
			get
			{
				return AntiAddictScNotify._parser;
			}
		}

		// Token: 0x17000238 RID: 568
		// (get) Token: 0x060007D3 RID: 2003 RVA: 0x00016967 File Offset: 0x00014B67
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AntiAddictScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000239 RID: 569
		// (get) Token: 0x060007D4 RID: 2004 RVA: 0x00016979 File Offset: 0x00014B79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AntiAddictScNotify.Descriptor;
			}
		}

		// Token: 0x060007D5 RID: 2005 RVA: 0x00016980 File Offset: 0x00014B80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AntiAddictScNotify()
		{
		}

		// Token: 0x060007D6 RID: 2006 RVA: 0x0001699E File Offset: 0x00014B9E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AntiAddictScNotify(AntiAddictScNotify other) : this()
		{
			this.msg_ = other.msg_;
			this.msgType_ = other.msgType_;
			this.level_ = other.level_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060007D7 RID: 2007 RVA: 0x000169DB File Offset: 0x00014BDB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AntiAddictScNotify Clone()
		{
			return new AntiAddictScNotify(this);
		}

		// Token: 0x1700023A RID: 570
		// (get) Token: 0x060007D8 RID: 2008 RVA: 0x000169E3 File Offset: 0x00014BE3
		// (set) Token: 0x060007D9 RID: 2009 RVA: 0x000169EB File Offset: 0x00014BEB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Msg
		{
			get
			{
				return this.msg_;
			}
			set
			{
				this.msg_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x1700023B RID: 571
		// (get) Token: 0x060007DA RID: 2010 RVA: 0x000169FE File Offset: 0x00014BFE
		// (set) Token: 0x060007DB RID: 2011 RVA: 0x00016A06 File Offset: 0x00014C06
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MsgType
		{
			get
			{
				return this.msgType_;
			}
			set
			{
				this.msgType_ = value;
			}
		}

		// Token: 0x1700023C RID: 572
		// (get) Token: 0x060007DC RID: 2012 RVA: 0x00016A0F File Offset: 0x00014C0F
		// (set) Token: 0x060007DD RID: 2013 RVA: 0x00016A17 File Offset: 0x00014C17
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x060007DE RID: 2014 RVA: 0x00016A2A File Offset: 0x00014C2A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AntiAddictScNotify);
		}

		// Token: 0x060007DF RID: 2015 RVA: 0x00016A38 File Offset: 0x00014C38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AntiAddictScNotify other)
		{
			return other != null && (other == this || (!(this.Msg != other.Msg) && this.MsgType == other.MsgType && !(this.Level != other.Level) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060007E0 RID: 2016 RVA: 0x00016A9C File Offset: 0x00014C9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Msg.Length != 0)
			{
				num ^= this.Msg.GetHashCode();
			}
			if (this.MsgType != 0U)
			{
				num ^= this.MsgType.GetHashCode();
			}
			if (this.Level.Length != 0)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060007E1 RID: 2017 RVA: 0x00016B11 File Offset: 0x00014D11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060007E2 RID: 2018 RVA: 0x00016B19 File Offset: 0x00014D19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060007E3 RID: 2019 RVA: 0x00016B24 File Offset: 0x00014D24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Level.Length != 0)
			{
				output.WriteRawTag(18);
				output.WriteString(this.Level);
			}
			if (this.Msg.Length != 0)
			{
				output.WriteRawTag(58);
				output.WriteString(this.Msg);
			}
			if (this.MsgType != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.MsgType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060007E4 RID: 2020 RVA: 0x00016BA4 File Offset: 0x00014DA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Msg.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Msg);
			}
			if (this.MsgType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MsgType);
			}
			if (this.Level.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Level);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060007E5 RID: 2021 RVA: 0x00016C1C File Offset: 0x00014E1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AntiAddictScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Msg.Length != 0)
			{
				this.Msg = other.Msg;
			}
			if (other.MsgType != 0U)
			{
				this.MsgType = other.MsgType;
			}
			if (other.Level.Length != 0)
			{
				this.Level = other.Level;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060007E6 RID: 2022 RVA: 0x00016C8A File Offset: 0x00014E8A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060007E7 RID: 2023 RVA: 0x00016C94 File Offset: 0x00014E94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					if (num != 58U)
					{
						if (num != 72U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.MsgType = input.ReadUInt32();
						}
					}
					else
					{
						this.Msg = input.ReadString();
					}
				}
				else
				{
					this.Level = input.ReadString();
				}
			}
		}

		// Token: 0x040002E8 RID: 744
		private static readonly MessageParser<AntiAddictScNotify> _parser = new MessageParser<AntiAddictScNotify>(() => new AntiAddictScNotify());

		// Token: 0x040002E9 RID: 745
		private UnknownFieldSet _unknownFields;

		// Token: 0x040002EA RID: 746
		public const int MsgFieldNumber = 7;

		// Token: 0x040002EB RID: 747
		private string msg_ = "";

		// Token: 0x040002EC RID: 748
		public const int MsgTypeFieldNumber = 9;

		// Token: 0x040002ED RID: 749
		private uint msgType_;

		// Token: 0x040002EE RID: 750
		public const int LevelFieldNumber = 2;

		// Token: 0x040002EF RID: 751
		private string level_ = "";
	}
}
